package com.lejin.cms.mapper;

import com.lejin.cms.entity.CourseCat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lejin.item.entity.CourseOutline;
import com.lejin.vo.CatCascadeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author luminghua
 * @since 2022-04-21
 */
public interface CourseCatMapper extends BaseMapper<CourseCat> {
    public List<CatCascadeVO> findCatCascade();

    //某个一级分类下的价格升序
    public List<CourseOutline> findCoursesByCatIdAndPriceAsc(String catId);

    public List<CourseOutline> findCoursesByHitsDesc(String cat2Id);
}
